﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
//using System.Data.OracleClient;
using Oracle.DataAccess.Client;
using Oracle.DataAccess.Types;

namespace WAContratos.Bean
{
    public class insertaOracle
    {

        public static Boolean insertaq(String query)
        {
            OracleConnection con;
            OracleCommand Comm;
            try
            {
                con = Conexion.Cone;
                con.Open();
                Comm = new OracleCommand();
                Comm = con.CreateCommand();
                Comm.CommandText = query;
                Comm.ExecuteNonQuery();
                con.Close();
                con.Dispose();
                con = null;
                return true;
            }
            catch (OracleException ex)
            {

                return false;
            }

        }
    }
}
